package org.donald.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "product_order_item")
public class ProductOrderItem {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订
单号
     */
    @TableField(value = "product_order_id")
    private Long productOrderId;

    /**
     * 产品id
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 商品名称
     */
    @TableField(value = "product_name")
    private String productName;

    /**
     * 购买数量
     */
    @TableField(value = "buy_num")
    private Integer buyNum;

    @TableField(value = "user_id")
    private Long userId;
}